package com.pzb.wechat.service;

import java.util.List;
import com.pzb.wechat.domain.WechatShoppingCart;

/**
 * 购物车Service接口
 * 
 * @author Mr_Wu
 * @date 2022-01-19
 */
public interface IWechatShoppingCartService 
{

    /**
     * 根据参数查询购物车商品
     * @param openid
     * @param extAppid
     * @param goodsId
     * @param goodsUnit
     * @return
     */
    WechatShoppingCart selectWechatShoppingCart(String openid, String extAppid, Long goodsId, String goodsUnit);


    Integer selectShoppingCartTotal(String openid, String extAppid);
    /**
     * 查询购物车列表
     * 
     * @param
     * @return 购物车集合
     */
    public List<WechatShoppingCart> selectWechatShoppingCartList(String openid, String extAppid);

    /**
     * 新增购物车
     * 
     * @param wechatShoppingCart 购物车
     * @return 结果
     */
    public int insertWechatShoppingCart(WechatShoppingCart wechatShoppingCart);

    /**
     * 修改购物车
     * 
     * @param wechatShoppingCart 购物车
     * @return 结果
     */
    public int updateWechatShoppingCart(WechatShoppingCart wechatShoppingCart);

    /**
     * 批量删除购物车
     * 
     * @param ids 需要删除的购物车主键集合
     * @return 结果
     */
    public int deleteWechatShoppingCartByIds(List<Long> ids);


    List<WechatShoppingCart> selectWechatShoppingCartListByIds(String extAppid,List<Long> cartIds,String provinceCode);
}
